<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
/**---首页相关----*/
Route::rule('get_goods','index/index/get_goods');
Route::rule('auth','index/user/auth');
Route::rule('register','index/login/register');
Route::rule('new_info','index/news/new_info');

/**---个人中心相关----*/
Route::rule('method', 'index/user/method'); //个人中心首页
Route::rule('method_info', 'index/user/method_info'); //邀请码
Route::rule('fx_qrcode', 'index/user/fx_qrcode'); //各种账户明细
Route::rule('user', 'index/user/index'); //个人中心首页
Route::rule('purse', 'index/user/purse'); //各种账户明细

Route::rule('statistics', 'index/user/statistics'); //各种账户明细

Route::rule('address', 'index/user/address'); //个人中心首页
// 财务相关
Route::rule('draws', 'index/finance/draw'); //提现首页
Route::rule('draw_info', 'index/finance/draw_info'); //提现记录
Route::rule('recharge', 'index/finance/recharge'); //提现记录
Route::rule('sign', 'index/user/sign'); //签到

Route::rule('recharge_details', 'index/finance/recharge_details'); //提现记录
/**---商品相关----*/
Route::rule('goods', 'index/goods/index'); //商品列表
Route::rule('search', 'index/goods/search'); //搜索页面
Route::rule('details', 'index/goods/read'); //商品详情
Route::rule('submit', 'index/goods/submit'); //商品详情
Route::rule('save_cart','index/cart/save','POST'); //添加至购物车
Route::rule('payment','index/order/payment','POST'); //发起支付
Route::rule('my_order', 'index/order/index'); //我的订单
Route::rule('order_info', 'index/order/info'); //订单详情

Route::rule('add_collect', 'index/goods/collect'); //收藏和取消收藏
//订单相关
Route::rule('place', 'index/cart/place'); //商品详情
Route::rule('group_info', 'index/order/group_info'); //商品详情
Route::rule('96e79218965eb72c92a549dd5a330114', 'index/notify/wechat'); //微信回调

//Route::rule('transfer', 'index/finance/transfer'); //互转首页
//Route::rule('transfer_info', 'index/finance/transfer_info'); //互转记录
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
